package com.mice.microserviceconsumer;

import feign.Contract;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Feign 的配置类
 * Created by AmbitiousMice on 2018/9/17.
 */
@Configuration
public class FeignConfiguration {

    /**
     * 将契约改成feign的默认契约 这样就可以使用feign自带的注解了
     * @return
     */
    @Bean
    public Contract feignContract(){
        return new feign.Contract.Default();
    }
}
